package com.edu.javaweb.mapper;

import com.edu.javaweb.pojo.Holiday;
import com.edu.javaweb.pojo.StuClass;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface HolidayMapper {
    @Select("select * from holiday")
    List<Holiday> findAll();
    @Insert("insert into holiday values (null,#{holiday})")
    void insHoliday(Holiday holiday);

    @Update("update holiday set holiday=#{holiday} where id=#{id}")
    void upHoliday(Holiday holiday);

    @Delete("delete from holiday where id=#{id}")
    void delById(Integer id);
}
